home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / websrvcs / nsISOAPServiceRegistry.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  7KB  |  192 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISOAPServiceRegistry.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISOAPServiceRegistry_h__
  6. #define __gen_nsISOAPServiceRegistry_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDOMElement; /* forward declaration */
  18.  
  19. class nsISOAPService; /* forward declaration */
  20.  
  21. class nsISOAPEncodingRegistry; /* forward declaration */
  22.  
  23.  
  24. /* starting interface:    nsISOAPServiceRegistry */
  25. #define NS_ISOAPSERVICEREGISTRY_IID_STR "9790d6bc-1dd1-11b2-afe0-bcb310c078bf"
  26.  
  27. #define NS_ISOAPSERVICEREGISTRY_IID \
  28.   {0x9790d6bc, 0x1dd1, 0x11b2, \
  29.     { 0xaf, 0xe0, 0xbc, 0xb3, 0x10, 0xc0, 0x78, 0xbf }}
  30.  
  31. /**
  32.  * This interface represents a registry of SOAP services.
  33.  * This registry recieves transports to listen for messages
  34.  *   and services to hand the messages to.  Service registries
  35.  *   may be created as required.  Destroying a service registry
  36.  *   stops the registry's action.  To temporarily register
  37.  *   services, create a new registry.  For proper order of
  38.  *   listening precedence, registries should be destroyed
  39.  *   in reverse order.  Otherwise, a listening priority
  40.  *   would be required.
  41.  */
  42. class NS_NO_VTABLE nsISOAPServiceRegistry {
  43.  public: 
  44.  
  45.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISOAPSERVICEREGISTRY_IID)
  46.  
  47.   /**
  48.    * Process a configuration and add the resulting sources
  49.    *   and services.  This will fail if errors occur during
  50.    *   processing of the configuration.
  51.    *
  52.    * @param aConfiguration Root element of configuration XML.
  53.    */
  54.   /* boolean addConfiguration (in nsIDOMElement aConfiguration); */
  55.   NS_IMETHOD AddConfiguration(nsIDOMElement *aConfiguration, PRBool *_retval) = 0;
  56.  
  57.   /**
  58.    * Add a transport to be serviced by the registered services.
  59.    *   This will fail if the specified source was already added
  60.    *   with the same setting of the capture flag.
  61.    *
  62.    * @param aTransport string specifying the transport to supply
  63.    *   messages for the service.
  64.    *
  65.    * @param aCapture True if capturing before later declarations
  66.    */
  67.   /* void addSource (in AString aTransport, in boolean aCapture); */
  68.   NS_IMETHOD AddSource(const nsAString & aTransport, PRBool aCapture) = 0;
  69.  
  70.   /**
  71.    * Add a service to service the registered transports.  This
  72.    *   will fail if the specified service was already added.
  73.    *
  74.    * @param aService Service to be serviced.
  75.    */
  76.   /* void addService (in nsISOAPService aService); */
  77.   NS_IMETHOD AddService(nsISOAPService *aService) = 0;
  78.  
  79.   /**
  80.    * Registry identifying how to encode and decode
  81.    *   messages containing specific types, automatically
  82.    *   added to messages sent to services in this
  83.    *   registry.
  84.    */
  85.   /* attribute nsISOAPEncodingRegistry encodings; */
  86.   NS_IMETHOD GetEncodings(nsISOAPEncodingRegistry * *aEncodings) = 0;
  87.   NS_IMETHOD SetEncodings(nsISOAPEncodingRegistry * aEncodings) = 0;
  88.  
  89. };
  90.  
  91. /* Use this macro when declaring classes that implement this interface. */
  92. #define NS_DECL_NSISOAPSERVICEREGISTRY \
  93.   NS_IMETHOD AddConfiguration(nsIDOMElement *aConfiguration, PRBool *_retval); \
  94.   NS_IMETHOD AddSource(const nsAString & aTransport, PRBool aCapture); \
  95.   NS_IMETHOD AddService(nsISOAPService *aService); \
  96.   NS_IMETHOD GetEncodings(nsISOAPEncodingRegistry * *aEncodings); \
  97.   NS_IMETHOD SetEncodings(nsISOAPEncodingRegistry * aEncodings); 
  98.  
  99. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  100. #define NS_FORWARD_NSISOAPSERVICEREGISTRY(_to) \
  101.   NS_IMETHOD AddConfiguration(nsIDOMElement *aConfiguration, PRBool *_retval) { return _to AddConfiguration(aConfiguration, _retval); } \
  102.   NS_IMETHOD AddSource(const nsAString & aTransport, PRBool aCapture) { return _to AddSource(aTransport, aCapture); } \
  103.   NS_IMETHOD AddService(nsISOAPService *aService) { return _to AddService(aService); } \
  104.   NS_IMETHOD GetEncodings(nsISOAPEncodingRegistry * *aEncodings) { return _to GetEncodings(aEncodings); } \
  105.   NS_IMETHOD SetEncodings(nsISOAPEncodingRegistry * aEncodings) { return _to SetEncodings(aEncodings); } 
  106.  
  107. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  108. #define NS_FORWARD_SAFE_NSISOAPSERVICEREGISTRY(_to) \
  109.   NS_IMETHOD AddConfiguration(nsIDOMElement *aConfiguration, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddConfiguration(aConfiguration, _retval); } \
  110.   NS_IMETHOD AddSource(const nsAString & aTransport, PRBool aCapture) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddSource(aTransport, aCapture); } \
  111.   NS_IMETHOD AddService(nsISOAPService *aService) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddService(aService); } \
  112.   NS_IMETHOD GetEncodings(nsISOAPEncodingRegistry * *aEncodings) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEncodings(aEncodings); } \
  113.   NS_IMETHOD SetEncodings(nsISOAPEncodingRegistry * aEncodings) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEncodings(aEncodings); } 
  114.  
  115. #if 0
  116. /* Use the code below as a template for the implementation class for this interface. */
  117.  
  118. /* Header file */
  119. class nsSOAPServiceRegistry : public nsISOAPServiceRegistry
  120. {
  121. public:
  122.   NS_DECL_ISUPPORTS
  123.   NS_DECL_NSISOAPSERVICEREGISTRY
  124.  
  125.   nsSOAPServiceRegistry();
  126.  
  127. private:
  128.   ~nsSOAPServiceRegistry();
  129.  
  130. protected:
  131.   /* additional members */
  132. };
  133.  
  134. /* Implementation file */
  135. NS_IMPL_ISUPPORTS1(nsSOAPServiceRegistry, nsISOAPServiceRegistry)
  136.  
  137. nsSOAPServiceRegistry::nsSOAPServiceRegistry()
  138. {
  139.   /* member initializers and constructor code */
  140. }
  141.  
  142. nsSOAPServiceRegistry::~nsSOAPServiceRegistry()
  143. {
  144.   /* destructor code */
  145. }
  146.  
  147. /* boolean addConfiguration (in nsIDOMElement aConfiguration); */
  148. NS_IMETHODIMP nsSOAPServiceRegistry::AddConfiguration(nsIDOMElement *aConfiguration, PRBool *_retval)
  149. {
  150.     return NS_ERROR_NOT_IMPLEMENTED;
  151. }
  152.  
  153. /* void addSource (in AString aTransport, in boolean aCapture); */
  154. NS_IMETHODIMP nsSOAPServiceRegistry::AddSource(const nsAString & aTransport, PRBool aCapture)
  155. {
  156.     return NS_ERROR_NOT_IMPLEMENTED;
  157. }
  158.  
  159. /* void addService (in nsISOAPService aService); */
  160. NS_IMETHODIMP nsSOAPServiceRegistry::AddService(nsISOAPService *aService)
  161. {
  162.     return NS_ERROR_NOT_IMPLEMENTED;
  163. }
  164.  
  165. /* attribute nsISOAPEncodingRegistry encodings; */
  166. NS_IMETHODIMP nsSOAPServiceRegistry::GetEncodings(nsISOAPEncodingRegistry * *aEncodings)
  167. {
  168.     return NS_ERROR_NOT_IMPLEMENTED;
  169. }
  170. NS_IMETHODIMP nsSOAPServiceRegistry::SetEncodings(nsISOAPEncodingRegistry * aEncodings)
  171. {
  172.     return NS_ERROR_NOT_IMPLEMENTED;
  173. }
  174.  
  175. /* End of implementation class template. */
  176. #endif
  177.  
  178. #define NS_SOAPSERVICEREGISTRY_CID                            \
  179. { /* 3869184e-1dd2-11b2-aa36-d8333498043a */        \
  180.   0x3869184e, 0x1dd2, 0x11b2,                       \
  181.  {0xaa, 0x36, 0xd8, 0x33, 0x34, 0x98, 0x04, 0x3a} }
  182. #define NS_SOAPSERVICEREGISTRY_CONTRACTID \
  183. "@mozilla.org/xmlextras/soap/serviceregistry;1"
  184. #define NS_SOAPDEFAULTSERVICEREGISTRY_CID                            \
  185. { /* 9120a01e-1dd2-11b2-a61f-906766927a4f */        \
  186.   0x9120a01e, 0x1dd2, 0x11b2,                       \
  187.  {0xa6, 0x1f, 0x90, 0x67, 0x66, 0x92, 0x7a, 0x4f} }
  188. #define NS_SOAPDEFAULTSERVICEREGISTRY_CONTRACTID \
  189. "@mozilla.org/xmlextras/soap/defaultserviceregistry;1"
  190.  
  191. #endif /* __gen_nsISOAPServiceRegistry_h__ */
  192.